﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Doves.Web
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string _control = string.Empty;
            if (Request.QueryString["Ctrl"] != null)
            {
                _control = Request.QueryString["Ctrl"];
            }
            if (_control == string.Empty)
            {
                phControl.Controls.Add(LoadControl("~/FrontControls/ctrlTest.ascx"));
            }
            else
            {
                phControl.Controls.Add(LoadControl(string.Format("~/FrontControls/{0}.ascx", _control)));
            }
        }
    }
}